﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using ControlAccessUser.Presenter;
using ControlAccessUser.Model;

namespace ControlAccessUser.Presentation
{
    /// <summary>
    /// Lógica de interacción para SelectModeLoggin.xaml
    /// </summary>
    public partial class SelectModeLoggin : Window, ISelectLoggingModeView
    {
        PresenterSelectLoggingMode pSelectLogginMode;

        public SelectModeLoggin()
        {
            InitializeComponent();
            pSelectLogginMode = new PresenterSelectLoggingMode(this);
        }

        private void btnLoginSystem_Click(object sender, RoutedEventArgs e)
        {
            pSelectLogginMode.GoLoggingModeSystemLogin();
        }        

        public void GoLoggingModeSystemLogin()
        {
            (new Login()).ShowDialog();
        }

        public void GoLoggingModeCheck()
        {
            (new Check()).ShowDialog();
        }

        private void btnCheck_Click(object sender, RoutedEventArgs e)
        {
            pSelectLogginMode.GoLoggingModeCheck();
        }
    }
}
